package com.example.demo;

import java.util.ArrayList;

abstract class person{
    protected String name;
    abstract public boolean setName(String name);
    abstract public String getName();
}
class student extends person{
    @Override
    public boolean setName(String name) {
        if(this.name.isEmpty()){
            this.name = name;
            return true;
        }
        return false;
    }

    @Override
    public String getName() {
        return this.name;
    }
}
public class testEqual {
    public static void main(String[] args){
        var stedents = new ArrayList<student>();

    }
}
